home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / mc51bugs / q32991 < prev    next >
Text File  |  1988-07-29  |  897b  |  37 lines

  1. Q32991 _searchenv of File in Root Directory
  2. C Compiler
  3. 5.00 5.10 | 5.10
  4. MS-DOS    | OS/2
  5.  
  6. Summary:
  7.    _searchenv will return an invalid pathname for a file in the
  8. root directory when the current working directory is also the root
  9. directory.
  10.    Microsoft has confirmed this to be a problem in Versions 5.00 and
  11. 5.10 of the C compiler. We are researching this problem and will post
  12. new information as it becomes available.
  13.  
  14. More Information:
  15.    The following program demonstrates this problem; it should be run in
  16. the root directory of your boot disk:
  17.  
  18. #include <dos.h>
  19.  
  20. main ()
  21. {
  22.   char path_buffer [40];
  23.  
  24.   _searchenv ("autoexec.bat", "PATH", path_buffer);
  25.   printf ("path: %s\n", path_buffer);
  26. }
  27.  
  28.    The following is the output (note the extra backslash in the path
  29. name):
  30.  
  31. path: C:\\autoexec.bat
  32.  
  33.  
  34.  
  35. Keywords:  buglist 5.00 buglist5.10
  36. Updated  88/07/29 12:16
  37.